package com.ruoyi.exa.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 试题选项对象 exa_question_options
 * 
 * @author linziheng
 * @date 2025-06-13
 */
@Data
@ApiModel(value = "ExaQuestionOptions", description = "试题选项对象")
public class ExaQuestionOptions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("ID")
    private Long id;

    /** 选择该选项的人数 */
    private Integer choiceNum;
    /** 选择该选项的人数比例 */
    private BigDecimal choiceRatio;

    private String oldContent;

    public String getOldContent() {
        return oldContent;
    }

    public void setOldContent(String oldContent) {
        this.oldContent = oldContent;
    }

    private boolean oldQuestion;

    public boolean isOldQuestion() {
        return oldQuestion;
    }

    public void setOldQuestion(boolean oldQuestion) {
        this.oldQuestion = oldQuestion;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    /** 选项内容 */
    @ApiModelProperty("选项内容")
    @Excel(name = "选项内容")
    private String content;
    @ApiModelProperty("排序")
    private String orderNum;

    /** 试题id */
    @Excel(name = "试题id")
    @ApiModelProperty("试题id")
    private Long questionId;

    /** 是否正确 */
    @ApiModelProperty("是否正确")
    @Excel(name = "是否正确")
    private boolean rorw;

    public boolean isRorw() {
        return rorw;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }

    public void setRorw(boolean rorw)
    {
        this.rorw = rorw;
    }

    public boolean getRorw()
    {
        return rorw;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("questionId", getQuestionId())
            .append("rorw", getRorw())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
